package com.yy.train.ticket.train.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yy.train.ticket.goout.TicketSectionSeat;
import com.yy.train.ticket.goout.TicketTable;
import com.yy.train.ticket.goout.st.SeatTicket;
import com.yy.train.ticket.into.page.TicketPage;
import com.yy.train.ticket.train.entity.TtTicketEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2023-10-07 09:09:39
 */
@Mapper
public interface TtTicketDao extends BaseMapper<TtTicketEntity> {

    List<TicketSectionSeat> ticketSectionSeat(Long runDateId);
    IPage<TicketTable> ticketPage(Page<TicketPage> page, @Param("ticketPage")  TicketPage ticketPage);

    IPage<TicketTable> ticketTrainPage(Page<TicketPage> page, @Param("ticketPage")  TicketPage ticketPage);

    List<SeatTicket> seatTicket(TtTicketEntity ttTicketEntity);

    // List<TicketTable> ticketPage(TicketPage ticketPage);
}
